<?php

namespace App\Model;

use Illuminate\Database\Eloquent\Model;

//后台模块表
class CityModel extends Model
{
    //定义一个表名
    protected $table = 'city';
    //定义主键
    protected $primaryKey = 'id';
	protected $guarded = [];

	Static function city($id){
		$name = CityModel::where('Id',$id)->value('Name');
		return $name;
	}
 
}
